﻿/**********************************************************************
 * @file   OperGeometryPlane.h
 * @brief  Geometry下Plane 面操作器
 * @author yangjing (1195810980@qq.com)
 * @date   2025-02-12
 *********************************************************************/

#ifndef __OPERATORS_GEOMETRY_PLANE_____
#define __OPERATORS_GEOMETRY_PLANE_____

#include "FITK_Kernel/FITKCore/FITKActionOperator.h"
#include "FITK_Kernel/FITKCore/FITKOperatorRepo.h"

namespace ModelOper
{
    class  OperGeometryPlane :public Core::FITKActionOperator
    {
        Q_OBJECT;
    public:
        /**
         * @brief  面操作器
         * @author yangjing (1195810980@qq.com)
         * @date   2025-2-12
        */
        explicit OperGeometryPlane() = default;
        virtual ~OperGeometryPlane() = default;

        /**
         * @brief 执行界面操作
         * @return true     执行成功
         * @return false     执行失败
         * @author yangjing (1195810980@qq.com)
         * @date 2025-02-12
         */
        virtual bool execGUI() override;
        /**
         * @brief 执行读入操作
         * @return true     执行成功
         * @return false     执行失败
         * @author yangjing (1195810980@qq.com)
         * @date 2025-02-12
         */
        virtual bool execProfession() override;

    private:


        /**
         * @brief Plane Model 块中Stretch按钮
         * @author yangjing (1195810980@qq.com)
         * @date 2025-02-13
         */
        bool createPlaneStretchOper();
        bool createMergerPlaneOper();

    };

    // 按钮注册相关操作
    Register2FITKOperatorRepo(actionPlaneWireframe, OperGeometryPlane);
    Register2FITKOperatorRepo(actionGeometricOperationsBodyFace, OperGeometryPlane);
}
#endif